package de.graph.common;

import java.util.Set;


/**
 * A vertex maintains pointers to both a set of incoming and outgoing edges.
 * 
 * ---inEdges---> vertex ---outEdges--->.
 */
public interface Vertex extends Element {

    /**
     * The edges leaving the vertex.
     *
     * @return the edges for which the vertex is the source
     */
    public Set<Edge> getOutEdges();

    /**
     * The edges arriving at the vertex.
     *
     * @return the edges for which the vertex is the target
     */
    public Set<Edge> getInEdges();
}
